import React from 'react';
import { Image } from 'react-native';

const icons = {
  zhinenggongchang: {
    source: require('./icons/zhinenggongchang.png'),
  },
  quyangguanli: {
    source: require('./icons/quyangguanli.png'),
  },
  zhuangcheguanli: {
    source: require('./icons/zhuangcheguanli.png'),
  },
  xiehuoguanli: {
    source: require('./icons/xiehuoguanli.png'),
  },
  icon_navigation_item_set_white: {
    source: require('./icons/icon_navigation_item_set_white.png'),
  },
  home: {
    source: require('./icons/home.png'),
  },
  todolist: {
    source: require('./icons/todo_list.png'),
  },
  message: {
    source: require('./icons/message.png'),
  },
  accout: {
    source: require('./icons/icons_accout.png'),
  },
};

export default props => (
  <Image
    source={icons[props.name].source}
    fadeDuration={0}
    style={props.style}
  />
);
